package com.ccrfid.rmc6.repository.personnel;

import com.ccrfid.rmc6.entity.personnel.PersonnelFocusEntity;
import org.springframework.data.repository.Repository;

import java.util.List;

public interface PersonnelFocusRepository extends Repository<PersonnelFocusEntity, Long> {

    PersonnelFocusEntity save(PersonnelFocusEntity entity);

    List<PersonnelFocusEntity> getAllByAccount(String account);

    PersonnelFocusEntity getByAccountAndPersonnelId(String account, Long personnelId);

    boolean existsByAccountAndPersonnelId(String account, Long personnelId);

    void deleteAllByAccountAndPersonnelId(String account, Long personnelId);
}
